


let fn_list=async (ctx,next)=>{
    ctx.body='博客列表'
}
let fn_getById=async (ctx,next)=>{
    ctx.body='单个博客'
}
let fn_add=async (ctx,next)=>{
    ctx.body='新增博客'
}
let fn_update=async (ctx,next)=>{
    ctx.body='编辑博客'
}
let fn_del=async (ctx,next)=>{
    ctx.body='删除博客'
}

export const obj = {
    "get /blogs":fn_list,
    "get /blogs/:id":fn_getById,
    "post /blogs":fn_add,
    "put /blogs/:id":fn_update,
    "delete /blogs/:id":fn_del

}

